package com.kkwrite.regimen.common.entity.dto.order;

import java.io.Serializable;

/**
 * Created by lisha on 2018/8/7 11:03.
 *
 * @author lisha
 */
public class OrderCountOutDTO implements Serializable {
    private static final long serialVersionUID = 654549455490255336L;

    private Long unPayNum;
    private Long unConsumeNum;
    private Long completedNum;
    private Long cancelNum;

    public OrderCountOutDTO() {
        super();
    }

    private OrderCountOutDTO(Long unPayNum, Long unConsumeNum, Long completedNum, Long cancelNum) {
        this.unPayNum = unPayNum;
        this.unConsumeNum = unConsumeNum;
        this.completedNum = completedNum;
        this.cancelNum = cancelNum;
    }

    public static OrderCountOutDTO of(Long unPayNum, Long unConsumeNum, Long completedNum, Long cancelNum) {
        return new OrderCountOutDTO(unPayNum, unConsumeNum, completedNum, cancelNum);
    }

    public static OrderCountOutDTO of(Long num) {
        return OrderCountOutDTO.of(num, num, num, num);
    }

    public Long getUnPayNum() {
        return unPayNum;
    }

    public void setUnPayNum(Long unPayNum) {
        this.unPayNum = unPayNum;
    }

    public Long getUnConsumeNum() {
        return unConsumeNum;
    }

    public void setUnConsumeNum(Long unConsumeNum) {
        this.unConsumeNum = unConsumeNum;
    }

    public Long getCompletedNum() {
        return completedNum;
    }

    public void setCompletedNum(Long completedNum) {
        this.completedNum = completedNum;
    }

    public Long getCancelNum() {
        return cancelNum;
    }

    public void setCancelNum(Long cancelNum) {
        this.cancelNum = cancelNum;
    }

    @Override
    public String toString() {
        return "OrderCountOutDTO{" +
                "unPayNum=" + unPayNum +
                ", unConsumeNum=" + unConsumeNum +
                ", completedNum=" + completedNum +
                ", cancelNum=" + cancelNum +
                '}';
    }
}
